package com.wasion.pwportable.protocol.analyzer.indicator;

import com.wasion.pwportable.protocol.analyzer.AbstractAnalyzer;

/**
 * 
 * @ClassName: LastShortCurrent_RD_Analyzer
 * @Description: 7F. 上次故障时故障电流和上次故障电流持续时间
 * @author 高意
 * @date 2014-9-10 下午5:32:24
 * 
 */
public class LastShortCurrent_RD_Analyzer extends AbstractAnalyzer {

	@Override
	public void dataAnalysis(String ackBS) {

		String data = ackBS.substring(DATABITSTART, DATABITSTART + 8);
		String load = data.substring(0, 4);
		result.setFaultCurrent(getCurrentPositive(load));

		String time = data.substring(4, 8); // + data.substring(4, 6);
		result.setDuration(Integer.parseInt(time, 16));
	}
}
